package com.spzx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spzx.product.api.domain.Brand;
import com.spzx.mapper.BrandMapper;
import com.spzx.service.BrandService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl extends ServiceImpl<BrandMapper, Brand> implements BrandService  {
    @Override
    public List<Brand> getBrandList(Brand brand) {
        String name = brand.getName();
       // String remark = brand.getRemark();
        QueryWrapper<Brand> name1 = new QueryWrapper<Brand>().like(name != null, "name", name);
        List<Brand> list = this.list(name1);


        return list;
    }
}
